import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useLayoutStore = defineStore(
  'settings',
  () => {
    let fold = ref(false) // 控制菜单是否折叠
    let refresh = ref(false) // 局部刷新
    let dark = ref(false) // 暗黑模式
    let color = ref('#409EFF') // 主题色
    return {
      fold,
      refresh,
      color,
      dark
    }
  },
  {
    persist: true
  }
)
